﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CADprogram.Base;

namespace CADprogram.Base
{
   public  class Render
    {

    }
    public class ReanderManager
    {
        public int RenderPoint(Point p, ref Image image,Style style )
        {

            return 0;
        }
        public int RenderLine(Line line, ref Image image, Graphics graphics,Style style)
        {
            if (style == null)
            {
                PointF[] p = line.points.Clone() as PointF[];
                Base.Matrix_Fangse.TransformPoints(p);
                graphics.DrawLines(Pens.Red, p);
            }
            return 0;
        }
        public int RenderPolyline(Line[] lines, ref Image image, Graphics graphics, Style style)
        {

            return 0;
        }
    }

    public class Style
    {

    }
}
